import React, {Component} from 'react';
// import logo from './logo.svg';
import './App.styl';
import './style/reset.styl'

// import {Button} from 'antd-mobile';
import { routes } from './utils/reactUtil'
import routeConfig from './router'
import { BrowserRouter as Router, Switch, Redirect } from 'react-router-dom'

class App extends Component {

    render() {
        return (
            <div className="App">
                <Router>
                    <Switch>
                        {
                            routes(routeConfig)
                        }
                        <Redirect to="/home" />
                    </Switch>
                </Router>

            </div>
        );
    }
}

export default App;
